

from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get('https://www.baidu.com')
id = driver.find_element(By.CLASS_NAME, 'bg s_ipt_wr new-pmd quickdelete-wrap')
print(id)
print(id.get_attribute('outerHTML'))
driver.quit()
